package com.sample.dubbo.server.impl;

import com.sample.dubbo.api.server.IDemoService;
import com.sample.dubbo.api.vo.UserVo;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 实例服务实现类
 * @author zwg
 * @date 2018-11-11 12:08
 **/

//@Service
@com.alibaba.dubbo.config.annotation.Service(interfaceClass = IDemoService.class,version = "1.0")
@Component
public class DemoServiceImpl implements IDemoService {
    /**
     * 获取用户
     *
     * @param user
     * @return
     */
    @Override
    public UserVo getUser(String user) {
        return new UserVo(1,"晓明", 23);
    }
}
